package com.hanxu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {

    //访问地址 http://localhost:8083/test1
    @RequestMapping("/test1")
    public String hello(Model model){
        model.addAttribute("msg","hello spring mvc");
        return "test";
    }
}
